﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="ucQueryUser.ascx.vb" Inherits="WebForm_ManageRoleUserMappingByUser_ucQueryUser" %>
  <%@ Register src="OpenManageUserRoleMapping.ascx" tagname="OpenManageUserRoleMapping" tagprefix="My" %>

<asp:Panel ID="Panel1" runat="server" GroupingText="<%$ Resources:Query %>">

    <table width="95%">
        <tr>
            <td align="right">
                <asp:Label ID="lblEmployeeID" runat="server" Text="<%$ Resources:EmployeeID %>"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtEmployeeID" runat="server" MaxLength="50"></asp:TextBox>
            </td>
            <td align="right">
                <asp:Label ID="lblEmployeeName" runat="server" 
                            Text="<%$ Resources:EmployeeName %>"></asp:Label>
            </td>
            <td>
                <asp:TextBox ID="txtEmployeeName" runat="server" MaxLength="50"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">
                <asp:Label ID="lblOrganizationID" runat="server" 
                            Text="<%$ Resources:OrganizationName %>"></asp:Label>
            </td>
            <td colspan="3">
  <asp:DropDownList ID="ddlOrganizationID" runat="server" AutoPostBack="false">
            </asp:DropDownList>            </td>
        </tr>
        <tr>
            <td align="center" colspan="4">
                 <asp:Button ID="btnQuery" runat="server" Text="<%$ Resources:Query %>" 
                    onclick="btnQuery_Click" />
            </td>
        </tr>
    </table>
</asp:Panel>
<br/>
<asp:GridView ID="TGridView1" runat="server"  AutoGenerateColumns="False" DataKeyNames="EmployeeID"
    SkinID="pager" OnRowDataBound="TGridView1_RowDataBound" EmptyDataText="查無資料" OnPageIndexChanging="TGridView1_PageIndexChanging">
    <Columns>
        
        <asp:BoundField DataField="EmployeeID" HeaderText="<%$ Resources:gvEmployeeID %>" SortExpression="EmployeeID"
            ReadOnly="True">
            <ItemStyle Width="22%" />
        </asp:BoundField>
        
                <asp:BoundField DataField="EmployeeName" HeaderText="<%$ Resources:gvEmployeeName %>" SortExpression="EmployeeName"
            ReadOnly="True">
            <ItemStyle Width="22%" />
        </asp:BoundField>
        <asp:BoundField DataField="OrganizationName" HeaderText="<%$ Resources:gvOrganizationName %>" SortExpression="OrganizationName"
            ReadOnly="True">
            <ItemStyle Width="22%" />
        </asp:BoundField>      
        
       
        <asp:TemplateField HeaderText="<%$ Resources:Active %>" SortExpression="Active">

            <ItemTemplate>
                <asp:CheckBox ID="chkActive0" runat="server" 
                    Enabled="False" />
                <asp:Label ID="lblActive0" runat="server" Text='<%# Eval("Active") %>' Visible="false"></asp:Label>
            </ItemTemplate>
            <ItemStyle HorizontalAlign="Center" />
        </asp:TemplateField>
       
        <asp:TemplateField HeaderText="<%$ Resources:SetupRole %>">
            <EditItemTemplate>
            </EditItemTemplate>
            <ItemTemplate>
                <asp:LinkButton ID="lbtnSetup" runat="server" Text="<%$ Resources:Setup %>" 
                    onclick="lbtnSetup_Click"></asp:LinkButton>
            </ItemTemplate>
            <ItemStyle HorizontalAlign="Center" />
        </asp:TemplateField>
    </Columns>
</asp:GridView>

<My:OpenManageUserRoleMapping ID="OpenManageUserRoleMapping1" runat="server" />
